package cpm.project;

public class Test {
    public static void main(String[] args) {
        IWash wash = new Mum();
        wash.washClothes();

        IWash w = new WashMec();
        w.washClothes();
    }
}

interface IWash{
    void washClothes();
}

class Mum implements IWash{

    @Override
    public void washClothes() {
        System.out.println("用搓衣板洗");
    }
}

class WashMec implements IWash{

    @Override
    public void washClothes() {
        System.out.println("用发动机搅");
    }
}
